local M = {}

function setup_lsp()
    vim.lsp.config('cangjie-lsp', {
        cmd = { 'LSPServer' },
        filetypes = { 'cangjie' },
        root_markers = { 'cjpm.toml', '.git' },

        get_language_id = function(bufnr, filetype)
            return 'Cangjie'
        end,
    })
end

function M.setup()
    setup_lsp()
end

return M
